package com.neptune.imapp.ui.compose.screen

import android.util.Log
import org.java_websocket.client.WebSocketClient
import org.java_websocket.handshake.ServerHandshake
import java.net.URI
import java.nio.ByteBuffer
import javax.inject.Singleton


@Singleton
class SocketClient(serverURI: URI?) : WebSocketClient(serverURI) {

    private final val tag = "SocketClient"

    override fun onOpen(handshakedata: ServerHandshake) {

    }

    override fun onClose(code: Int, reason: String, remote: Boolean) {

    }

    override fun onMessage(message: String) {

    }

    override fun onMessage(message: ByteBuffer?) {
        
    }

    override fun onError(ex: Exception) {
        Log.d(tag, "onError: e")
    }

}